package com.itheima.user.feign;
import com.itheima.user.pojo.ItemsHistory;
import com.itheima.util.Result;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/****
 * @Author:itheima
 * @Description:
 *****/
@FeignClient(name="user")
public interface ItemsHistoryFeign {

    @PostMapping(value = "/itemsHistory/search" )
    Result<List<ItemsHistory>> findList(@RequestBody(required = false) ItemsHistory itemsHistory);

    @PutMapping(value="/itemsHistory/{id}")
    Result update(@RequestBody ItemsHistory itemsHistory, @PathVariable("id") String id);

    @PostMapping("/itemsHistory")
    Result add(@RequestBody ItemsHistory itemsHistory);
}